<html>
<head>
	<meta charset="UTF-8">
	<meta content="IE=edge" http-equiv="X-UA-Compatible">
	<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
	<title>3599：[Scoi2014]舌尖上的方伯伯</title>
	<!-- css -->
	<link href="../css/base.min.css" rel="stylesheet">
	<link href="../css/project.min.css" rel="stylesheet">
	
	<!-- favicon -->
	<!-- ... -->
</head>
<body class="page-brand">
	<header class="header header-transparent header-waterfall ui-header">
		<ul class="nav nav-list pull-left">
			<li>
				<a data-toggle="menu" href="#menu">
					<span class="icon icon-lg">menu</span>
				</a>
			</li>
		</ul>
		<a class="header-logo header-affix-hide margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">[Scoi2014]舌尖上的方伯伯</a>
		<span class="header-logo header-affix margin-left-no margin-right-no" data-offset-top="213" data-spy="affix">[Scoi2014]舌尖上的方伯伯</span>
	</header>
	<nav aria-hidden="true" class="menu" id="menu" tabindex="-1">
		<div class="menu-scroll">
			<div class="menu-content">
				<a class="menu-logo" href="../index.html">BZOJ离线题库</a>
				<ul class="nav">
					<li>
						<a class="waves-attach" data-toggle="collapse" href="#problems">题目</a>
						<ul class="menu-collapse collapse in" id="problems">
							<li>
								<a class="waves-attach" href="../index.html">主页</a>
							</li>
							<li>
								<a class="waves-attach" href="../list.html">题目列表</a>
							</li>
						</ul>
					</li>
					<li>
						<a class="collapsed waves-attach" data-toggle="collapse" href="#about">关于</a>
						<ul class="menu-collapse collapse" id="about">
							<li>
								<a class="waves-attach" href="../about.html">关于此项目</a>
							</li>
						</ul>
					</li>
					
				</ul>
			</div>
		</div>
	</nav>
	<main class="content">
		<div class="content-header ui-content-header">
			<div class="container">
				<h1 class="content-heading">
                [Scoi2014]舌尖上的方伯伯                </h1>
                <p>时间限制：10s&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  空间限制：64MB</p>			</div>
		</div>
		<div class="container">
			<section class="content-inner margin-top-no">
				<div class="row">
					<div class="col-lg-13 col-md-13">
						<div class="card margin-bottom-no">
							<div class="card-main">
								<div class="card-inner">
									
                                <h3>题目描述</h3><p><p>&nbsp;方伯伯为了吃到最传统最纯净的美食，决定亲自开垦一片菜园。</p>
<div>现有一片空地，方伯伯已经规划n个地点准备种上蔬菜。最新鲜的蔬菜需有最甘甜井水的灌溉，因此方伯伯</div>
<div>将要打出两口井，分别记为井A、井B。</div>
<div>现在问题来了，在何处打井？每颗蔬菜分别由哪口井来灌溉？</div>
<div>方伯伯不善于计算，于是提出以下几个原则，再根据这些原则找方案。</div>
<div>原则如下：</div>
<div>1.井必须打在它负责灌溉的蔬菜的正中心，即设它的坐标为(X,Y)，X(Y)为它负责灌溉的所有蔬菜的</div>
<div>横(纵)坐标之和的平均值。</div>
<div>2.所有蔬菜都需要被灌溉。</div>
<div>3.两口井都必须要灌溉至少一颗蔬菜。</div>
<div>4.到A井更近的蔬菜，必须由A井灌溉，到B井更近的蔬菜，必须由B井灌溉。距离相等相等时则可任意一口井灌溉。</div>
<div>当然两口井不能打到同一个位置，多株蔬菜当然也不会种在同一个位置。</div>
<div>方伯伯把他的开垦原则告诉了你，请你告诉他有多少种满足这些原则方案。</div>
<div>我们把灌溉1号蔬菜的井记为A号井，那么，只要A灌溉的蔬菜的集合不同，就是一种不同的方案。</div></p><hr/><h3>输入格式</h3><p><p>输入1行包含1个整数n，代表方师傅的蔬菜的数目</p>
<div>接下来n行，每行包含2个整数，xi，yi，代表第i棵蔬菜的坐标。</div>
<div></div></p><hr/><h3>输出格式</h3><p><div>输出包含1个整数，代表方师傅可行的方案数</div></p><hr/><h3>样例输入</h3><pre>3
3 4
1 1
5 1
</pre><hr/><h3>样例输出</h3><pre>3</pre><hr/><h3>提示</h3><p><p>&nbsp;1&lt;=n&lt;=60，0&lt;=xi,yi&lt;=60</p></p><hr/><h3>题目来源</h3><p>By 佚名提供</p>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				
			</section>
		</div>
	</main>

	<div class="fbtn-container">
		<div class="fbtn-inner">
			<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light waves-effect" data-toggle="dropdown" aria-expanded="true"><span class="fbtn-text fbtn-text-left">Menu</span><span class="fbtn-ori icon">apps</span><span class="fbtn-sub icon">close</span></a>
			<div class="fbtn-dropup">
				<a class="fbtn fbtn-brand waves-attach waves-circle waves-light waves-effect" href="../list.html" target="_self"><span class="fbtn-text fbtn-text-left">题目列表</span><span class="icon">menu</span></a>
				<a class="fbtn fbtn-green waves-attach waves-circle waves-effect" href="../index.html" target="_self"><span class="fbtn-text fbtn-text-left">返回主页</span><span class="icon">home</span></a>
				<a class="fbtn waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/submitpage.php?id=3599" target="_blank"><span class="fbtn-text fbtn-text-left">提交代码</span><span class="icon">send</span></a>
				<a class="fbtn fbtn-orange waves-attach waves-circle waves-effect" href="http://www.lydsy.com/JudgeOnline/wttl/wttl.php?pid=3599" target="_blank"><span class="fbtn-text fbtn-text-left">试题讨论</span><span class="icon">chat</span></a>
				
			</div>
		</div>
	</div>

	<!-- js -->
	<script src="../js/jquery.min.js"></script>
	<script src="../js/base.min.js"></script>
	<script src="../js/project.min.js"></script>
</body>
</html>